<?php
set_time_limit(0);
 
$canDo='y';
if (isset($_POST['op'])){
    include '../c/config.php';
    $openid=trim($_POST['op']);
    $mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
 
    $queryJ=$mysqli->query("SELECT phone,nianji from `uinfo` where uid='".$openid."'  limit 0,1 ");
    if($queryJ->num_rows>0){
       $getU=$queryJ->fetch_assoc();
       echo json_encode(array('s'=>'y','phone'=>$getU['phone'],'nianji'=>$getU['nianji']));
    }else{
       echo json_encode(array('s'=>'n','phone'=>''));
    }
    	 
    
}else{
    echo json_encode(array('s'=>'n','phone'=>''));
}

?>